package com.example.demo.util.httpclient;

/**
 * HttpUtil
 *
 * @author hao.chen
 * @date 2023/6/3 19:54
 */
public class HttpUtil {

    static HttpExecutor executor;

    static {
        executor = HttpExecutorBuilder.custom().build();
    }

    public static Executor get(String url) {
        return executor.get(url);
    }

    public static Executor post(String url) {
        return executor.post(url);
    }

    public static Executor postJson(String url) {
        return executor.postJson(url);
    }

    public static Executor postXml(String url) {
        return executor.postXml(url);
    }

    public static Executor upload(String url) {
        return executor.upload(url);
    }

}
